<script setup>
import { onMounted } from 'vue';
import { Button, Radio, Checkbox, FormItem } from '@/components/web';
import { request } from '@/https';
import { showLoading } from '@/components/web/packages/Loading/helper';

const getValue = () => {
    const loading = showLoading();
    
    request({
        url: 'https://t.shijiwxy.5tree.cn/eduGrowth/api/setting/getSetting',
    })
        .then((result) => {
            console.log(result)
        })
        .catch((e) => {
            console.log(e)
        })
        .finally(() => {
            loading.hide();
        });
};

onMounted(() => {
    getValue();
});
</script>

<template>
    <div>
        <div>
            <Button @click="getValue">按钮23</Button>
        </div>

        <div>
            <Radio label="123456" />
        </div>
        <div>
            <Checkbox label="123456" />
        </div>

        <div>
            <FormItem label="什么" />
        </div>
    </div>
</template>